<ion-view view-title="新增收货人" class="addr" cache-view="false">
    <ion-content>
        <ion-list >
            <div class="item animated" ng-repeat="(k,v) in o.accept"  on-tap="lbsBack(v)">
                <label>
                    {{v.Name}}
                </label>
            </div>
        </ion-list>
        <ion-list ng-if="!o.addrsShow">
            <ion-item ng-repeat="item in o.items track by $index">
                <label for="" on-tap="getCurrentList(item)">
                   {{item.Name}}
                </label>
            </ion-item>
        </ion-list>
        <form name="orderForm" ng-if="o.addrsShow" class="padding">
            <div class="contacts" on-tap="selectContacts()">
                <i class="icon ion-ios-personadd-outline right"></i>
                选联系人
            </div>
            <label class="item item-input contact">
                <input required type="text" ng-model="receiver.UserName" placeholder="收货人姓名">

            </label>
            <label class="item item-input contact">
                <input required type="number" ng-model="o.receiver.UserPhone" placeholder="收货人手机号">
            </label>
            <label class="item item-input">
                <textarea required name="" ng-model="o.receiver.addrs" id="" rows="10" placeholder="请输入详细地址"></textarea>
            </label>
            <button class="button button-full button-assertive" ng-disabled="orderForm.$invalid" on-tap="saveReceiver()">
                保存
            </button>
        </form>

    </ion-content>
</ion-view>